#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
using namespace std;

class Solution {
public:
    int maxSubArray(vector<int>& nums) {
        int len = nums.size();
        if(len == 1){
            return nums[0];
        }
        int ans = nums[0];

    }
};

int main()
{
    Solution solution;
    vector<int> input = {-2,1,-3,4,-1,2,1,-5,4};
    solution.maxSubArray(input);
    return 0;
}